#include "Camera.h"
#include "InputState.h"

Camera::Camera()
{
	m_PosW = vector3f(0.0f, -1.0f, 0.0f);
	m_RightW = vector3f(1.0f, 0.0f, 0.0f);
	m_UpW = vector3f(0.0f, 0.0f, 1.0f);
	m_LookW = vector3f(0.0f, 0.0f, 0.0f);
}

Camera::Camera(int clientWidth, int clientHeight)
{
	m_PosW = vector3f(0.0f, -1.0f, 0.0f);
	m_RightW = vector3f(1.0f, 0.0f, 0.0f);
	m_UpW = vector3f(0.0f, 0.0f, 1.0f);
	m_LookW = vector3f(0.0f, 0.0f, 0.0f);
}

Camera::~Camera()
{
}

void Camera::SetPos(const vector3f& pos)
{
	m_PosW = pos;
	glLoadIdentity();
	gluLookAt(m_PosW[0],m_PosW[1],m_PosW[2],0,0,0,0,0,1);
}

void Camera::updateCamera(const InputState& refInputState)
{
	POINTS temp = refInputState.getMousePos();
}